/*
 * 文件名：MerchantTypeServiceImpl.java	 
 * 时     间：下午3:54:24
 * 作     者：liyf       
 * 版     权： 2014-2022  智慧园区, 公司保留所有权利.
 * 联     系：www.szyungu.com
 */
package com.cz073586.technology.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cz073586.common.dao.face.BaseMapper;
import com.cz073586.common.exception.BaseException;
import com.cz073586.common.servcie.impl.BaseServiceImpl;
import com.cz073586.technology.dao.mapers.MerchantTypeMapper;
import com.cz073586.technology.model.MerchantType;
import com.cz073586.technology.model.MerchantTypeExample;
import com.cz073586.technology.service.face.MerchantTypeService;

/**
 * @ClassName: MerchantTypeServiceImpl
 * @Description: 这里用一句话描述这个类的作用
 * @author liyf
 * @date 2015年1月20日 下午3:54:24
 */
@Service
public class MerchantTypeServiceImpl extends
		BaseServiceImpl<MerchantTypeExample, MerchantType, String> implements
		MerchantTypeService
{
	@Autowired
	private MerchantTypeMapper merchantTypeMapper;
	
	@Override
	public BaseMapper<MerchantTypeExample, MerchantType, String> getMapper()
	{
		return merchantTypeMapper;
	}

	@Override
	public List<MerchantType> queryByMerchantType(MerchantType merchantType)
	{
		return merchantTypeMapper.queryByMerchantType(merchantType);
	}

	@Override
	public List<MerchantType> queryHomePage(MerchantType merchantType)
			throws BaseException
	{
		return merchantTypeMapper.queryHomePage(merchantType);
	}

	@Override
	public List<MerchantType> queryMerchantTypeByParentId(
			MerchantType merchantType) throws BaseException
	{
		return merchantTypeMapper.queryMerchantTypeByParentId(merchantType);
	}
	
}
